package cn.edu.tsinghua.cic.ccss.bo;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import cn.edu.tsinghua.cic.ccss.dto.CoursewareDto;
import cn.edu.tsinghua.cic.ccss.entity.Courseware;

public interface CoursewareBo {
	
	List<CoursewareDto> findCoursewareByCourseId(Long courseId);
	
	void doDeleteCourseware(Long id);
	
	void doSaveCourseware(Courseware entity);
	
	boolean checkFileType(String filename);
	
	byte[] downloadCoursewareById(Long id,HttpServletResponse repsonse);
}
